GRUB_SERIAL := ""
GRUB_TIMEOUT := "0"
GRUB_OPTS := ""
APPEND = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 console=ttyAMA0,115200"
GRUB_ROOT := "root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"

inherit deploy

do_deploy() {
    install -d ${DEPLOYDIR}/EFI/BOOT
    GRUBCFG=${DEPLOYDIR}/EFI/BOOT/grub.cfg
    cp ${S}/grub-bootconf $GRUBCFG
}

addtask deploy after do_install before do_build
do_deploy[dirs] += "${DEPLOYDIR}/EFI/BOOT"
